package ch.zbw.pra.sysventory.ui.gui.panels.welcomepanel;

import java.awt.BorderLayout;

import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;

import ch.zbw.pra.sysventory.domain.factories.FileGenerator;
import ch.zbw.pra.sysventory.domain.factories.FileGenerator.FileType;

public class WelcomePanel extends JPanel {

	private static final long serialVersionUID = 316473692148498698L;

	private ImageIcon welcomePicture;

	public WelcomePanel() {
		super(new BorderLayout());
		this.welcomePicture = new ImageIcon(new FileGenerator().getFile(FileType.WELCOME).getAbsolutePath());
		this.add(new JLabel(this.welcomePicture), BorderLayout.CENTER);
	}
}
